
const state =  {
    data: {},
    status: false
}

const mutations = {
    setData: (state, data) => {
        state.data = data;
    },
    setStatus: (state, status) => {
        state.status = status;
    }
}

const actions = {
    setData: ({commit}, data) => {
        commit("setData", data)
    },
    setStatus: ({commit}, status) => {
        commit("setStatus", status)
    }
}


export default {
    namespaced: true,
    state,
    mutations,
    actions
}